<?php 
	echo form_open('crud/runQuery');
	echo form_label('Query'); 
	echo form_textarea('query',set_value('query'));
	echo "<br/>";
	echo form_submit('submit', 'Run');
	echo form_close();
	echo "<br/>";
	
	if(isset($errorNo)) {
		echo "<p>DB Error: ($errorNo) $errorMsg</p>";
	}
?>